package com.example.teesystem.entity.vo.chapter;

import com.example.teesystem.common.valid.ValidErrorMessage;
import com.example.teesystem.common.valid.ValidId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ChapterUploadVo {
    /**
     * 所属课程id
     */
    @ValidId(message = ValidErrorMessage.COURSE_ID_VALID_FAIL, ifCourseId = true)
    private Integer courseId;
    
//    /**
//     * 章节
//     */
//    @ValidId(message = ValidErrorMessage.CHAPTER_NUM_VALID_FAIL)
//    private Integer chapter;
    
    /**
     * 章节名称
     */
    @NotEmpty(message = ValidErrorMessage.CHAPTER_NAME_VALID_FAIL)
    private String message;
}
